﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GrewalCRM.Entities;
using GrewalCRM.DAL;

namespace GrewalCRM.BLL
{
  public class UserCRM_BLL:BaseBLLGrewalCRM,IBaseBLLGrewalCRM
  {    
    public UserCRM_BLL()
    {
      baseDAL = new UserCRM_DAL();
    }

    #region Protected Method
    protected override int AddNew(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    }

    protected override int Update(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    }

    protected override int Delete(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    } 
    #endregion

    #region Public Method
    public int Save(BaseEntitiesGrewalCRM entiry)
    {
      throw new NotImplementedException();
    }

    protected override List<BaseEntitiesGrewalCRM> GetAll()
    {
      throw new NotImplementedException();
    }

    protected override BaseEntitiesGrewalCRM GetByID(int ID)
    {
      throw new NotImplementedException();
    }

    protected override void FillEntity(BaseEntitiesGrewalCRM Entity)
    {
        baseDAL.FillEntity(Entity);
    }

    public UserCRM GetValideUser(UserCRM User)
    {
        FillEntity(User);

        if (User != null)
        {
            return User;
        }
        else
        {
          return null;
        }
    }
    #endregion
  }
}
